package org.awa.demo.opencv.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author xxf
 */
@Data
@TableName(value = "log_traffic")
public class TrafficLogEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer roadId;

    private String geoId;

    private Integer bigNum;

    private Integer middleNum;

    private Integer smallNum;

    private Double bigRate;

    private Double middleRate;

    private Double smallRate;

    private Date dateTime;

    public TrafficLogEntity(){}

    public TrafficLogEntity(Integer roadId,TrafficLogEntity entity){
        this.roadId = roadId;
        this.geoId = entity.getGeoId();
        this.bigNum = entity.getBigNum();
        this.middleNum = entity.getMiddleNum();
        this.smallNum = entity.getSmallNum();
        this.bigRate = entity.getBigRate();
        this.middleRate = entity.getMiddleRate();
        this.smallRate = entity.getSmallRate();
        this.dateTime = entity.getDateTime();
    }

}
